package com.android.phoenix.net;

import java.util.ArrayList;
import java.util.List;

import org.apache.http.Header;
import org.apache.http.HttpEntity;
import org.apache.http.message.BasicHeader;

import com.dfzy.android.net.RequestParams;

/**
 * 抽象的请求参数
 */
public abstract class AbstractRequestParams implements RequestParams {
	
	protected final static String serviceUri = "http://www.baidu.com";
	
//	protected String clientId;
	
	protected final List<Header> headerList = new ArrayList<Header>();

	@Override
	public abstract String getUri();
	
	@Override
	public List<Header> getHeaders() {
		List<Header> list = new ArrayList<Header>();
		list.add(new BasicHeader("Content-Type", "application/json"));
		return list;
	}

	@Override
	public HttpEntity getEntity() {
		return null;
	}
	
	@Override
	public void onTimeout() {
	}
}
